% Created by Peter Novak, peter.novak [at] felk.cvut.cz
\ProvidesFile{manifest.sty}[2010/03/09 Package for adding categories, terms and keywords to llncs style]

\newcommand{\keywords}[1]{\par\addvspace\baselineskip \noindent\textbf{Keywords:}\enspace\ignorespaces#1}
\newcommand{\terms}[1]{\par\addvspace\baselineskip \noindent\textbf{General terms:}\enspace\ignorespaces#1}
\newcommand{\@cattitle}{\par\addvspace\baselineskip \noindent\textbf{Categories and subject descriptors:}\enspace\ignorespaces}

% -- Classification needs to be a bit smart due to optionals -
% Gerry/Georgia November 2nd. 1999
\newcount\catcount
\global\catcount=1

\def\category#1#2#3{%
\ifnum\catcount=1
%\section*{Categories and Subject Descriptors}
\@cattitle
\advance\catcount by 1\else{\unskip; }\fi
    \@ifnextchar [{\@category{#1}{#2}{#3}}{\@category{#1}{#2}{#3}[]}%
}

\def\@category#1#2#3[#4]{%
    \begingroup
        \let\and\relax
            #1 [\textbf{#2}]%
            \if!#4!%
                \if!#3!\else : #3\fi
            \else
                :\space
                \if!#3!\else #3\kern\z@---\hskip\z@\fi
                \textit{#4}%
            \fi
    \endgroup
}
%

